package com.twu.biblioteca;

import java.util.List;

import static java.util.Arrays.asList;

public class Library {
    public static final String WELCOME_MESSAGE = "Welcome to Biblioteca!!";
    public static final List<String> ALL_BOOKS = asList("Lord of the Rings", "Blink", "What the Dog Saw");
    public static final String LIST_BOOKS_HEADER = "\nAll Books:";
    private final Printer printer;

    public Library(Printer printer) {
        this.printer = printer;
    }

    public void printWelcomeMessage() {
        printer.print(WELCOME_MESSAGE);
    }

    public void printBooksOwned() {
        printer.print(LIST_BOOKS_HEADER);
        printer.print(ALL_BOOKS);
    }
}
